]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "wip: cross fade the window_group and window clones going in/out of the overview"
authorRui Matos <tiagomatos@gmail.com>
Tue, 19 Jul 2011 23:45:53 +0000 (00:45 +0100)
committerRui Matos <tiagomatos@gmail.com>
Tue, 19 Jul 2011 23:45:53 +0000 (00:45 +0100)
This reverts commit 162559159827227d418afd1f712f79c1d3a4a353.

js/ui/overview.js
js/ui/workspace.js

index 37c90c3f35fbae40b487ddbdd721e885dd065ec3..085f29224243ffe0d367007637337d8474930595 100644 (file)
@@ -535,15 +535,7 @@ Overview.prototype = {
         //
         // If we switched to displaying the actors in the Overview rather than
         // clones of them, this would obviously no longer be necessary.
-
-        global.window_group.raise(global.overlay_group);
-        Tweener.addTween(global.window_group,
-                         { opacity: 0,
-                           time: ANIMATION_TIME,
-                           transition: 'easeInOutQuad',
-                           onComplete: function() { global.window_group.hide(); }
-                         });
-
+        global.window_group.hide();
         this._group.show();
         this._background.show();
 
@@ -672,14 +664,6 @@ Overview.prototype = {
         this.animationInProgress = true;
         this._hideInProgress = true;
 
-        global.window_group.raise(global.overlay_group);
-        global.window_group.show();
-        Tweener.addTween(global.window_group,
-                         { opacity: 255,
-                           time: ANIMATION_TIME,
-                           transition: 'easeInOutQuad'
-                         });
-
         if (!this.workspaces.getActiveWorkspace().hasMaximizedWindows()) {
             this._desktopFade.opacity = 0;
             this._desktopFade.show();
@@ -720,6 +704,8 @@ Overview.prototype = {
     },
 
     _hideDone: function() {
+        global.window_group.show();
+
         this.workspaces.destroy();
         this.workspaces = null;
 
index 0c17485668ce3b4cb29350fc7df8ae3eea274821..e6c65b973781f15672d094e8e9aa9e326935a2c9 100644 (file)
@@ -973,28 +973,17 @@ Workspace.prototype = {
                                       });
                 }
 
-                clone.actor.opacity = 0;
                 Tweener.addTween(clone.actor,
-                                 { opacity: 255,
+                                 { x: x,
+                                   y: y,
+                                   scale_x: scale,
+                                   scale_y: scale,
                                    time: Overview.ANIMATION_TIME,
-                                   transition: 'easeInOutQuad',
+                                   transition: 'easeOutQuad',
                                    onComplete: Lang.bind(this, function() {
                                       this._showWindowOverlay(clone, overlay, true);
                                    })
                                  });
-                // Tweener.addTween(clone.actor,
-                //                  { x: x,
-                //                    y: y,
-                //                    scale_x: scale,
-                //                    scale_y: scale,
-                //                    time: Overview.ANIMATION_TIME,
-                //                    transition: 'easeInOutQuad',
-                //                    onComplete: Lang.bind(this, function() {
-                //                       this._showWindowOverlay(clone, overlay, true);
-                //                    })
-                //                  });
-                clone.actor.set_position(x, y);
-                clone.actor.set_scale(scale, scale);
             } else {
                 clone.actor.set_position(x, y);
                 clone.actor.set_scale(scale, scale);
@@ -1259,18 +1248,14 @@ Workspace.prototype = {
 
             if (clone.metaWindow.showing_on_its_workspace()) {
                 Tweener.addTween(clone.actor,
-                                 { opacity: 0,
+                                 { x: clone.origX,
+                                   y: clone.origY,
+                                   scale_x: 1.0,
+                                   scale_y: 1.0,
                                    time: Overview.ANIMATION_TIME,
-                                   transition: 'easeInOutQuad'
+                                   opacity: 255,
+                                   transition: 'easeOutQuad'
                                  });
-                // Tweener.addTween(clone.actor,
-                //                  { x: clone.origX,
-                //                    y: clone.origY,
-                //                    scale_x: 1.0,
-                //                    scale_y: 1.0,
-                //                    time: Overview.ANIMATION_TIME,
-                //                    transition: 'easeInOutQuad'
-                //                  });
             } else {
                 // The window is hidden, make it shrink and fade it out
                 Tweener.addTween(clone.actor,